Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    RewriteRule: cannot compile regular expression '^.*/.*/.*/.*/.*/([a-Z]+)\.( ...

    • Article Type: General
    • Product: Aleph
    • Product Version: 19.01

    Description:
    I am trying to get the re-write rules as mentioned in the How to publish Aleph records in Google (Aleph Version 18.01) on page 8 to work. However a config-test on the configuration files gives me:

    RewriteRule: cannot compile regular expression '^.*/.*/.*/.*/.*/([a-Z]+)\\.([0-9]+)\\.html$'

    There seems to be a error in the documentation that says that the condition and rule should look like this:

    RewriteCond %{HTTP_USER_AGENT} !.*bot.*
    RewriteRule ^/.*/.*/.*/.*/.*/([a-Z]+)\.([0-9]+\.html$ \
    http://julia.hj.se/F/-?func=find-b&request=$2&find_code=SYS&local_base=$1

    Resolution:
    [From Daniel Forsman, on ALEPH-NA:]

    Ex Libris has confirmed that there was a error in the documentation and that the correct configuration should be (in our case, for you change the server-domain):

    RewriteRule ^/.*/.*/.*/.*/.*/([a-zA-Z0-9]+)\.([0-9]+)\.html$
    http://julia.hj.se/F/-?func=find-b&request=$2&find_code=SYS&local_base=$1

    The documentation will be updated with the correct configuration.


    • Article last edited: 10/8/2013
    • Was this article helpful?